lcImageGetPixelRGB Home

Retrieves color of image pixel. The image must have RGB colors (LC_PROP_IMAGE_RGB = true).

 BOOL lcImageGetPixelRGB (
   HANDLE hImage,
   int X,
   int Y,
   int* pRed,
   int* pGreen,
   int* pBlue
 );

Parameters
hImage
  Handle to a raster image object.
X
  Pixel X coordinate. The value must be less then LC_PROP_IMAGE_WPIX.
Y
  Pixel Y coordinates. The value must be less then LC_PROP_IMAGE_HPIX.
pRed pGreen pBlue
  Pointer to a variable which will receive a value of color component.

Return Value

  If the function succeeds, the return value is nonzero (TRUE).

See Also

  lcImageSetPixelRGB